package com.vf.admin.client.controller.oppo.controller;

import com.alibaba.fastjson.JSONObject;
import com.vf.admin.client.controller.oppo.service.OppoPushService;
import com.vf.admin.client.controller.vivo.service.VivoPushService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.security.GeneralSecurityException;

/**
 * <p>Title : </p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/8/28 15:32
 */
@RestController
@RequestMapping("/app/oppo")
public class OppoController {

    @Autowired
    private OppoPushService oppoPushService;


    @RequestMapping(value = "/push")
    public JSONObject push(String oaid,String dataType) throws IOException, GeneralSecurityException {

        JSONObject jsonObject = oppoPushService.sendInfoMsg(oaid, dataType);
        return jsonObject;
    }
}
